layui.use(['element','table','layer'], function () {
    var $ = layui.jquery,
        element = layui.element,
        layer = layui.layer,
        table = layui.table;


    $('.layui-btn').on('click', function(){
        var othis = $(this), method = othis.data('method');
        active[method] ? active[method].call(this, othis) : '';
    });
});
